<script setup>
  import axios from 'axios'

  async function fun1() {
    let response = await axios.get(
      '/ficsFleetServices/home/page/efficiencyTrend',
      {
        params: {
          organizeId: '669801850404942853',
          fleetId: null,
          dateTimeFlag: 'year'
        },
        headers: {
          head1: 'head1'
        }
      }
    )

    console.log(response)
  }

  async function fun2() {
    let response = await axios.post(
      '/api/rand.qinghua',
      // {
      //   format: 'jaon'
      // },
      {
        params: {
          param1: 'param1'
        },
        headers:{
          head1: 'head1'
        }
      }
    )
  }

</script>

<template>
  <div>
    <input v-bind:type="'button'" v-bind:value="'get简写请求'" v-on:click="fun1()" />
    <input v-bind:type="'button'" v-bind:value="'post简写请求'" v-on:click="fun2()" />
  </div>
</template>

<style scoped>

</style>
